package org.openfans.domain;

import java.util.List;

public class Page {
	private List list;

	private int count;

	private int pageNum;

	private int pageSize;
	
	private int pageCount;

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}


	public int getPageNum() {
		return pageNum;
	}

	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	public List getList() {
		return list;
	}

	public void setList(List list) {
		this.list = list;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	
	public int getPageCount() {
		return pageCount;
	}

	public void cacPageCount(){
		int i=this.pageCount=this.count/this.pageSize;
		if((this.count%this.pageSize)>0){
			i=i+1;
		}
		if(i==0){
			i=1;
		}
		this.pageCount=i;
	}

}
